package org.jctc.els.modules.biz.entity.pro;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 评审选项表;
 * @author : http://www.chiner.pro
 * @date : 2022-6-21
 */
@ApiModel(value = "评审选项表",description = "")
@TableName("els_project_review_options")
@Data
public class ProjectReviewOptions implements Serializable,Cloneable{
    /** id */
    @TableId
    @ApiModelProperty(name = "id",notes = "")
    private Long id ;
    /**
     * 项目ID
     */
    @ApiModelProperty(name = "项目ID",notes = "")
    private Long projectId;
    /** 评审表ID */
    @ApiModelProperty(name = "评审表ID",notes = "")
    private Long projectReviewId ;
    /** 选项内容 */
    @ApiModelProperty(name = "选项内容",notes = "")
    private String optionContent ;
    /** 选项分值 */
    @ApiModelProperty(name = "选项分值",notes = "")
    private Double optionScore ;
    /** 得分类型;1=>加分  2=>减分 */
    @ApiModelProperty(name = "得分类型",notes = "1=>加分  2=>减分")
    private Integer scoreType ;
    /** 评分方式;0=>固定分数  1=>下拉选择  2=>自定义分数 */
    @ApiModelProperty(name = "评分方式",notes = "0=>固定分数  1=>下拉选择  2=>自定义分数")
    private Integer scoringMethod ;
    /** 状态 */
    @ApiModelProperty(name = "状态",notes = "")
    private Integer status ;
    /** 逻辑删除 */
    @ApiModelProperty(name = "逻辑删除",notes = "")
    private Integer isDeleted ;
    /** 乐观锁 */
    @ApiModelProperty(name = "乐观锁",notes = "")
    private Long revision ;
    /** 创建人 */
    @ApiModelProperty(name = "创建人",notes = "")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createdBy ;
    /** 创建时间 */
    @ApiModelProperty(name = "创建时间",notes = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime ;
    /** 更新人 */
    @ApiModelProperty(name = "更新人",notes = "")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long updatedBy ;
    /** 更新时间 */
    @ApiModelProperty(name = "更新时间",notes = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime ;
}